package com.srit.core.service;

import com.srit.core.bean.Page;

/**
 * 基础类，封装
 * 
 * @author guan
 * 
 */
public interface BaseService {

	/**
	 * 保存实体
	 * 
	 * @param object
	 */
	public abstract void save(Object object);

	/**
	 * 修改实体
	 * 
	 * @param object
	 */
	public abstract void update(Object object);

	/**
	 * @param object
	 * @param id
	 *            主键id
	 * @return
	 */
	public abstract Object getById(Object object, Integer id);

	public abstract void page(Object object, Page page);

	public abstract void delete(Object object);
}
